<?php
class Kbs_Application_Resource_Locale extends Zend_Application_Resource_ResourceAbstract
{
    protected $_locale;

    /**
     * To init the Locale
     *
     * @return Zend_Locale $locale
     */
    public function init()
    {
        if (null === $this->_locale) {
            $this->getBootstrap()->bootstrap('Db');
            $bisObj = new Kbs_Model_Business_Locale();
            $locale = $bisObj->initLocale();
            Zend_Registry::set('Zend_Locale', $locale);
            $this->_locale = $locale;
        }
        return $this->_locale;
    }
}